home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / hypercar / science / inttour.sit / Internet Local Info / stack_-1.xml < prev    next >
Encoding:
Extensible Markup Language  |  1991-05-08  |  4.7 KB  |  24 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in</name>
  5.     <id>-1</id>
  6.     <cardCount>4</cardCount>
  7.     <cardID>9740</cardID>
  8.     <listID>5429</listID>
  9.     <cantModify><false /></cantModify>
  10.     <cantDelete><false /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>512</width>
  14.         <height>342</height>
  15.     </cardSize>
  16.     <script>on openstack
  17. global tourname
  18. put tourname
  19. if tourname = empty then
  20. start using stack "internet tour 4.0.2"
  21. put "internet tour 4.0.2" into tourname
  22. else
  23. start using stack tourname
  24. end if
  25. waitcursor
  26. put ""
  27. hide message box
  28. global waitticks, thiseffect
  29. put 1 into waitticks
  30. hide card button "click me" of card 1
  31. Hide bg button 1 of cd 2
  32. set the visible of cd field "directions popup" of cd 2 to false
  33. set the locktext of bg field "list" of cd 2 to true
  34. set the locktext of bg field "title" of cd 2 to true
  35. if item 4 of the screenrect < 481 then hide menubar
  36. if the shiftkey is down then go cd id 124574
  37. if the number of this cd is "1" then
  38. set the showname of card button "click me" of cd 1 to false
  39. show card button "click me" of cd 1
  40. set the showname of card button "click me" of cd 1 to true
  41. set cursor to hand
  42. end if
  43. end openstack
  44.  
  45. on checkfields
  46. if the visible of bg button 1 = true then
  47. if the locktext of bg field "list" = false ┬¼
  48. or the visible of bg field "title" = false then
  49. answer "Fields that are unlocked now will be locked when you come back to Local Info." with┬¼
  50. "Continue" or "Stay here"
  51. if it is "stay here" then exit to hypercard
  52. end if
  53. end if
  54. end checkfields
  55.  
  56. on mouseup
  57. global thiseffect, thistarget, whatwasclicked
  58. if "field" is not in the name of the target  then
  59. put "You have clicked on an inactive area."
  60. wait 66 ticks
  61. put ""
  62. hide msg
  63. exit mouseup
  64. else
  65. put the textstyle of the clickchunk into thestyle
  66. if "group" is not in thestyle then
  67. if the visible of bg button 1 <> true then
  68. put "Please click on underlined text."
  69. else
  70. put "Unlock field using the Lock button, or click on underlined text."
  71. end if
  72. wait 76 ticks
  73. put ""
  74. hide msg
  75. exit mouseup
  76. else
  77. if playsounds is "true" then play harpsichord
  78. waitcursor
  79. put the clicktext into whatwasclicked
  80. push card
  81. find whatwasclicked in the target
  82. put "zoom open" into thiseffect
  83. set the lockscreen to true
  84. find whole whatwasclicked in field "title"
  85. if the result is "" then
  86. opencard
  87. exit mouseup
  88. else if the result is not "" then
  89. put "Searching other stack (push BACK twice to come back.)"
  90. searchitour
  91. end if
  92. end if
  93. end if
  94. repeat while the mouseclick
  95. end repeat
  96. end mouseup
  97.  
  98. on searchitour
  99. global thiseffect, whatwasclicked, tourname
  100. put "" into theresult
  101. set the lockrecent to true
  102. go cd "top menu" of stack tourname
  103. if whatwasclicked is "Internet" then
  104. go cd "The Internet description" of stack tourname
  105. else if whatwasclicked is "arpanet" then
  106. go cd "arpanet glossary" of stack tourname
  107. else if whatwasclicked is "Network" then
  108. go cd "Network glossary" of stack tourname
  109. else if whatwasclicked is "telnet" then
  110. go cd "telnet" of stack tourname
  111. else
  112. find whole whatwasclicked in field "level 4"
  113. if the result is "" then
  114. opencard
  115. repeat while the mouseclick
  116. end repeat
  117. exit searchitour
  118. else if the result is not "" then find whole whatwasclicked in field "level 2"
  119. if the result is "" then
  120. opencard
  121. set lockrecent to false
  122. repeat while the mouseclick
  123. end repeat
  124. exit searchitour
  125. else if the result is not "" then find whole whatwasclicked in field "level 3"
  126. if the result is "" then
  127. opencard
  128. set lockrecent to false
  129. repeat while the mouseclick
  130. end repeat
  131. exit searchitour
  132. else if the result is not "" then find whole whatwasclicked in field "level 3 glossary" -- fld 3 again
  133. if the result is "" then
  134. opencard
  135. set lockrecent to false
  136. repeat while the mouseclick
  137. end repeat
  138. exit searchitour
  139. else if the result is not "" then find whole whatwasclicked in field "level 4"
  140. if the result is "" then
  141. opencard
  142. set lockrecent to false
  143. repeat while the mouseclick
  144. end repeat
  145. exit searchitour
  146. else if the result is "" then
  147. opencard
  148. set lockrecent to false
  149. repeat while the mouseclick
  150. end repeat
  151. exit searchitour
  152. end if
  153. end if
  154. put the result into theresult
  155. if theresult is not "" then
  156. put "Sorry, couldn't find it."
  157. put "plain" into thiseffect
  158. pop card
  159. wait 96 ticks
  160. put ""
  161. hide msg
  162. end if
  163. set the lockrecent to false
  164. repeat while the mouseclick
  165. end repeat
  166. end searchitour</script>
  167.     <background id="2679" file="background_2679.xml" name="4" />
  168.     <background id="14286" file="background_14286.xml" name="menus" />
  169.     <card id="9740" file="card_9740.xml" marked="false" name="" owner="14286" />
  170.     <card id="2888" file="card_2888.xml" marked="false" name="local info popup" owner="2679" />
  171.     <card id="4797" file="card_4797.xml" marked="false" name="donew popup" owner="2679" />
  172.     <card id="2145" file="card_2145.xml" marked="false" name="donew popup 2" owner="2679" />
  173. </stack>
  174.